package com.itheima.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 员工实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Emp implements Serializable {
    private static final long serialVersionUID=1L;
    @TableId(type= IdType.AUTO)
    private Integer id; //ID
    private String username; //用户名字
    private String password; //密码
    private String name; //姓名
    private String mobile; //手机号
    private String workNumber; //员工工号
    private String staffPhoto; //头像地址
    private Integer formOfEmployment; //聘用形式，说明: 1 正式,2 非正式
    @TableField(value = "departmentName")
    private String departmentName; //部门名称
@TableField(value = "timeofentry")
    private String timeofentry; //员工入职时间
    private String correctionTime; //员工转正时间
    private Integer departmentId; //ID
    private Integer age; //年龄
    private String education; //学历

    public Emp(String username, String password, String mobile, String workNumber, String staffPhoto, Integer formOfEmployment, String departmentName, String timeofentry, String correctionTime, Integer age, String education) {
        this.username = username;
        this.password = password;
        this.mobile = mobile;
        this.workNumber = workNumber;
        this.staffPhoto = staffPhoto;
        this.formOfEmployment = formOfEmployment;
        this.departmentName = departmentName;
        this.timeofentry = timeofentry;
        this.correctionTime = correctionTime;
        this.age = age;
        this.education = education;
    }
}
